import request from '@/utils/request'

export default {

  /**
   * 会员注册
   * @param {object} registerObj 注册对象
   */
  register(registerObj) {
    return request({
      url:    `/ucenter/member/register`,
      method: 'post',
      data:   registerObj
    })
  },

  /**
   * 发送短信验证码
   * @param {string} phone 接收短信的手机号
   */
  sendCode(phone) {
    return request({
      url:    `/sms/send/code/${phone}`,
      method: 'get'
    })
  },

  

}

